Follow-up r69233: use getDbKey() instead of getText() for special pages.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 23 Jan 2011 20:19:04 +0000 (20:19 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 23 Jan 2011 20:19:04 +0000 (20:19 +0000)
includes/api/ApiQuery.php

index 89689d8..d7b7d8a 100644 (file)
@@ -430,7 +430,7 @@ class ApiQuery extends ApiBase {
                        ApiQueryBase::addTitleInfo( $vals, $title );
                        $vals['special'] = '';
                        if ( $title->getNamespace() == NS_SPECIAL &&
-                                       !SpecialPage::exists( $title->getText() ) ) {
+                                       !SpecialPage::exists( $title->getDbKey() ) ) {
                                $vals['missing'] = '';
                        } elseif ( $title->getNamespace() == NS_MEDIA &&
                                        !wfFindFile( $title ) ) {